package com.owen.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 采访记录
 */
public class Interview {

    // 主键ID
    private Integer id;

    // 媒体
    private String medium;

    // 栏目
    private String col;

    // 记者
    private String reporter;

    // 联系方式
    private String phone;

    // 采访主题
    private String theme;

    // 采访时间
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
    private Date interviewTime;

    // 采访地点
    private String address;

    // 采访对象
    private String target;

    // 采访需求
    private String demand;

    // 意见
    private String opinion;

    //领导批示
    private String leaderOpinion;

    // 承办结果
    private String result;

    // 是否删除（0：正常；1：删除）
    private Integer isDel;

    // 创建时间
    private Date createTime;

    // 创建者id
    private Long createId;

    // 修改时间
    private Date updateTime;

    // 修改者id
    private Long updateId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMedium() {
        return medium;
    }

    public void setMedium(String medium) {
        this.medium = medium;
    }

    public String getCol() {
        return col;
    }

    public void setCol(String col) {
        this.col = col;
    }

    public String getReporter() {
        return reporter;
    }

    public void setReporter(String reporter) {
        this.reporter = reporter;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getTheme() {
        return theme;
    }

    public void setTheme(String theme) {
        this.theme = theme;
    }

    public Date getInterviewTime() {
        return interviewTime;
    }

    public void setInterviewTime(Date interviewTime) {
        this.interviewTime = interviewTime;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }

    public String getDemand() {
        return demand;
    }

    public void setDemand(String demand) {
        this.demand = demand;
    }

    public String getOpinion() {
        return opinion;
    }

    public void setOpinion(String opinion) {
        this.opinion = opinion;
    }

    public String getLeaderOpinion() {
        return leaderOpinion;
    }

    public void setLeaderOpinion(String leaderOpinion) {
        this.leaderOpinion = leaderOpinion;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getCreateId() {
        return createId;
    }

    public void setCreateId(Long createId) {
        this.createId = createId;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getUpdateId() {
        return updateId;
    }

    public void setUpdateId(Long updateId) {
        this.updateId = updateId;
    }

    @Override
    public String toString() {
        return "Interview{" +
                "id=" + id +
                ", medium='" + medium + '\'' +
                ", col='" + col + '\'' +
                ", reporter='" + reporter + '\'' +
                ", phone='" + phone + '\'' +
                ", theme='" + theme + '\'' +
                ", interviewTime=" + interviewTime +
                ", address='" + address + '\'' +
                ", target='" + target + '\'' +
                ", demand='" + demand + '\'' +
                ", opinion='" + opinion + '\'' +
                ", leaderOpinion='" + leaderOpinion + '\'' +
                ", result='" + result + '\'' +
                ", isDel=" + isDel +
                ", createTime=" + createTime +
                ", createId=" + createId +
                ", updateTime=" + updateTime +
                ", updateId=" + updateId +
                '}';
    }

    public Interview(Integer id, String medium, String col, String reporter, String phone, String theme, Date interviewTime, String address, String target, String demand, String opinion, String leaderOpinion, String result, Date createTime, Long createId, Date updateTime, Long updateId) {
        this.id = id;
        this.medium = medium;
        this.col = col;
        this.reporter = reporter;
        this.phone = phone;
        this.theme = theme;
        this.interviewTime = interviewTime;
        this.address = address;
        this.target = target;
        this.demand = demand;
        this.opinion = opinion;
        this.leaderOpinion = leaderOpinion;
        this.result = result;
        this.isDel = 0;
        this.createTime = createTime;
        this.createId = createId;
        this.updateTime = updateTime;
        this.updateId = updateId;
    }

    public Interview(Integer id, String medium, String col, String reporter, String phone, String theme, Date interviewTime, String address, String target, String demand, String opinion, String leaderOpinion, String result, Integer isDel, Date createTime, Long createId, Date updateTime, Long updateId) {
        this.id = id;
        this.medium = medium;
        this.col = col;
        this.reporter = reporter;
        this.phone = phone;
        this.theme = theme;
        this.interviewTime = interviewTime;
        this.address = address;
        this.target = target;
        this.demand = demand;
        this.opinion = opinion;
        this.leaderOpinion = leaderOpinion;
        this.result = result;
        this.isDel = isDel;
        this.createTime = createTime;
        this.createId = createId;
        this.updateTime = updateTime;
        this.updateId = updateId;
    }


    public Interview() {
    }



}
